/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.assignment2.dipobey;

import za.ac.cput.assignment2.dipobey.impl.GradeTestImpl;

/**
 *
 * @author Siya
 */
public class GradeTest {
    
    private int mark;
    
    public GradeTest(){
        
    }
    public GradeTest(int mk){
        
        mark = mk;
        
    }
    public void grade(GradeTestImpl grade){
        
        if(grade.distingtion(mark))
            System.out.println("Student passed the course");
        else
            System.out.println("Student must repeat the course");
        
    }

    /**
     * @return the mark
     */
    public int getMark() {
        return mark;
    }

    /**
     * @param mark the mark to set
     */
    public void setMark(int mark) {
        this.mark = mark;
    }
}
